libmath.so:add.o
	gcc -shared -o $@ $^

add.o:add.c
	gcc -fPIC -c -o $@ $^

.PHONY:clean

clean:
	rm -rf lib

.PHONY:output

output:
	mkdir -p lib/include
	mkdir -p lib/libmath
	mv libmath.so lib/libmath
	mv add.h lib/include


